package com.numberone.iotplatform.repository;


import com.numberone.iotplatform.entity.DiscoveredDevice;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface DiscoveredDeviceRepository extends JpaRepository<DiscoveredDevice, Long> {
    Optional<DiscoveredDevice> findByIpAddressAndPort(String ipAddress, Integer port);

}